//
//  File.swift
//  tuniu
//
//  Created by 于世民 on 2019/8/15.
//  Copyright © 2019 于世民. All rights reserved.
//

import Foundation
import ObjectMapper

struct YUHomeTopModel: Mappable {
    
    init?(map: Map) {
        
    }
    
    mutating func mapping(map: Map) {
        
        advertises <- map["data.advertises"]
    }
    
    var advertises : [YUAdvertisesModel]?
}

struct YUAdvertisesModel: Mappable {
    
    init?(map: Map) {
        
    }
    
    mutating func mapping(map: Map) {
        
        title <- map["title"]
        image <- map["image"]
    }
    
    var title:String = ""
    var image:String = ""
    
}

struct YUCategoryModel: Mappable {
    
    init?(map: Map) {
        
    }
    
    mutating func mapping(map: Map) {
        
        title <- map["title"]
        image <- map["image"]
    }
    
    var title:String = ""
    var image:String = ""
    
}
